package pta.MOOC.ch02.ex08;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = 0;
        int y = 0;
        while (true){
            int num = scanner.nextInt();
            if(num == -1){
                break;
            }
            if(num % 2 == 0){
                y++;
            }else{
                x++;
            }
        }
        System.out.println((x + "," + y));
        scanner.close();
    }
}
